<html lang="zh-CN" style="font-size: 55.2px;" class="translated-ltr">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <link rel="icon" href="favicon.ico">
    <title>Welcome Indeed Mall</title>
    <link rel="stylesheet" href="/statics/css/base.css">
    <link href="/statics/css/chunk-vendors.c3991080.css" rel="stylesheet">
    <link href="/statics/css/app.bad77f0c.css" rel="stylesheet">
        <link rel="stylesheet" href="/static/index/css/common.css">
    <script src="/static/jquery-3.5.0.min.js"></script>
    <script src="/static/layer/layer.js"></script>
</head>

<body class="">
    <style>
        #loadingContainer {
            position: fixed;
            width: 100%;
            height: 100%;
            z-index: 999999;
            background: #ffffff;
            display: none;
        }
        #grab{
            background-image: url(/statics/img/bg.a2c7c85d.png) !important;
        }
    </style>
    <div id="app">
        <div class="van-popup van-popup--round van-popup--top"
            style="transition-duration: 0.5s; height: 15%; display: none;">
            <div class="languages">
                <div class="item"><img
                        src="">
                    <p>
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">Inglés</font>
                        </font>
                    </p>
                </div>
                <div class="item active"><img src="/statics/img/pt_BR.53b6f6a1.png">
                    <p>
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">Español</font>
                        </font>
                    </p>
                </div>
                <div class="item"><img src="/statics/img/zh_CN.87a823ad.png">
                    <p>Chino</p>
                </div>
            </div>
        </div>
        <div data-v-4fa27633="" class="home">
            <div data-v-3818d914="" data-v-4fa27633="" id="grab">
                <div data-v-3818d914="" class="statistical">
                    <div data-v-3818d914="" class="statistical-card">
                        <div data-v-3818d914="" class="classification">
                            <div data-v-3818d914="" class="main-title">
                                <p data-v-3818d914="">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Amazon Order</font>
                                    </font>
                                </p>
                            </div>
                            <div data-v-3818d914="" class="commission">
                                <font style="vertical-align: inherit;">
                                    <!--<font style="vertical-align: inherit;">佣金比例 {:config('commission')}%</font>-->
                                    <font style="vertical-align: inherit;">Proporción de la Comisión {$level}%</font>
                                </font>
                            </div>
                        </div>
                        <div data-v-3818d914="" class="card-row">
                            <div data-v-3818d914="" class="item">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Ingresos actuales</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Mex${$count_info.today}</font>
                                    </font>
                                </div>
                            </div>
                            <div data-v-3818d914="" class="item" style="margin-left: 38px;">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Ingresos personales</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Mex${$user_info.total}</font>
                                    </font>
                                </div>
                            </div>
                        </div>
                        <div data-v-3818d914="" class="card-row" style="justify-content: space-between;">
                            <div data-v-3818d914="" class="item">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Tareas completadas</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">{$user_info.finish_order}</div>
                            </div>
                            <div data-v-3818d914="" class="item">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Tarea de bloqueo</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">{$count_info.locked}</font>
                                    </font>
                                </div>
                            </div>
                            <div data-v-3818d914="" class="item">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Tareas pendientes</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">{$order_num}</font>
                                    </font>
                                </div>
                            </div>
                        </div>
                        <div data-v-3818d914="" class="card-row card-row-last">
                            <div data-v-3818d914="" class="item">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Importe congelado</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Mex${$user_info.freeze}</font>
                                    </font>
                                </div>
                            </div>
                            <div data-v-3818d914="" class="item" style="margin-left: 29px;">
                                <div data-v-3818d914="" class="title">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Saldo de la cuenta</font>
                                    </font>
                                </div>
                                <div data-v-3818d914="" class="value">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">Mex${$user_info.balance}</font>
                                    </font>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div data-v-3818d914="" class="btn-group">
                    <div data-v-3818d914="" class="btn-start"><span data-v-3818d914="" class="grab">
                            Automatically accept commands
                        </span></div>
                    <div data-v-3818d914="" class="btn-stop"><span data-v-3818d914="" class="stop">
                            Stop receiving orders
                        </span>
                    </div>
                </div>
                <div data-v-3818d914="" class="divider"></div>
                <section data-v-3818d914="">
                    <div data-v-3818d914="" class="grab-card">
                        <div data-v-3818d914="" class="grab-card-title">
                            <p data-v-3818d914="">
                                <font style="vertical-align: inherit;">
                                    <font style="vertical-align: inherit;">observation</font>
                                </font>
                            </p>
                        </div>
                        <div data-v-3818d914="" class="grab-card-box">
                            <p data-v-3818d914="">
                                <font style="vertical-align: inherit;">
                                    <font style="vertical-align: inherit;">When the user matches the order, the platform will synchronously send the order information to the merchant。</font>
                                    <font style="vertical-align: inherit;">If the user fails to pay within 60 minutes, the order will be frozen to bypass the supervision of the online shopping platform.</font>
                                    <font style="vertical-align: inherit;">After the order is frozen, the order funds will also be frozen.</font>
                                    <font style="vertical-align: inherit;">Please note that your funds will disappear in 720 hours.</font>
                                </font>
                            </p>
                        </div>
                    </div>
                </section>
            </div>
            <div data-v-4afd947b="" data-v-4fa27633="" id="tabbar" style="background-color: rgb(255, 255, 255);">
                 <div data-v-4afd947b="" class="we-tabbar-item" onclick="location.href = '/sr/index/index.html'">
                   <div data-v-4afd947b="" class="we-tabbar-item-icon"><img data-v-4afd947b=""
                            src="/statics/img/home.c61e1b98.png" style="width: 33px; height: 33px;"></div>
                    <div data-v-4afd947b="" class="we-tabbar-item-title"
                        style="font-size: 12px; color: rgb(136, 136, 136); font-weight: 600;">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">First</font>
                        </font>
                    </div>
                </div>
                <div data-v-4afd947b="" class="we-tabbar-item" onclick="location.href = '/sr/recharge/index.html'">
                    <div data-v-4afd947b="" class="we-tabbar-item-icon"><img data-v-4afd947b=""
                            src="/statics/img/activity.c2f6a5c6.png" style="width: 33px; height: 33px;">
                    </div>
                    <div data-v-4afd947b="" class="we-tabbar-item-title"
                        style="font-size: 12px; color: rgb(136, 136, 136); font-weight: 600;">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">Recharge</font>
                        </font>
                    </div>
                </div>
                <div data-v-4afd947b="" class="we-tabbar-item">
                    <div data-v-4afd947b="" class="we-tabbar-item-icon"><img data-v-4afd947b=""
                            src="/statics/img/activity_checked.b56c1653.png"
                            style="width: 33px; height: 33px;"></div>
                    <div data-v-4afd947b="" class="we-tabbar-item-title"
                        style="font-size: 12px; color: rgb(0, 0, 0); font-weight: 600;">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">Rob</font>
                        </font>
                    </div>
                </div>
               <div data-v-4afd947b="" class="we-tabbar-item" onclick="location.href = '/sr/order/index.html?type=0'">
                    <div data-v-4afd947b="" class="we-tabbar-item-icon"><img data-v-4afd947b=""
                            src="/statics/img/service.a6ac7fb3.png" style="width: 33px; height: 33px;">
                    </div>
                    <div data-v-4afd947b="" class="we-tabbar-item-title"
                        style="font-size: 12px; color: rgb(136, 136, 136); font-weight: 600;">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">order</font>
                        </font>
                    </div>
                </div>
                <div data-v-4afd947b="" class="we-tabbar-item" onclick="location.href = '/sr/account/index.html'">
                    <div data-v-4afd947b="" class="we-tabbar-item-icon"><img data-v-4afd947b=""
                            src="/statics/img/personal.12d9a809.png" style="width: 33px; height: 33px;">
                    </div>
                    <div data-v-4afd947b="" class="we-tabbar-item-title"
                        style="font-size: 12px; color: rgb(136, 136, 136); font-weight: 600;">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">my</font>
                        </font>
                    </div>
                </div>
            </div>
        </div>
        <section style="display:none">
            <div class="float-right-bottom">
                <div style="position: relative;">
                    <div class="close"><i class="van-icon van-icon-close" style="font-size: 20px;">
                            <!---->
                        </i></div>
                    <div><svg t="1636034620833" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
                            p-id="5235" width="48" height="48" class="icon">
                            <path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#2B2B2B"
                                p-id="5236"></path>
                            <path
                                d="M332.8 499.2c0-98.9696 80.2304-179.2 179.2-179.2s179.2 80.2304 179.2 179.2h51.2c0-127.2448-103.1552-230.4-230.4-230.4s-230.4 103.1552-230.4 230.4h51.2z m0 0c0-98.9696 80.2304-179.2 179.2-179.2s179.2 80.2304 179.2 179.2h51.2c0-127.2448-103.1552-230.4-230.4-230.4s-230.4 103.1552-230.4 230.4h51.2z"
                                fill="#E0B58C" p-id="5237"></path>
                            <path
                                d="M332.8 524.8v102.4h51.2v-102.4h-51.2z m-51.2-25.6768c0-14.0928 11.5456-25.5232 25.7152-25.5232h102.1696c14.208 0 25.7152 11.456 25.7152 25.5232v153.7536A25.6384 25.6384 0 0 1 409.4848 678.4H307.328A25.6256 25.6256 0 0 1 281.6 652.8768V499.1232zM640 524.8v102.4h51.2v-102.4h-51.2z m-51.2-25.6768c0-14.0928 11.5456-25.5232 25.7152-25.5232h102.1696c14.208 0 25.7152 11.456 25.7152 25.5232v153.7536A25.6384 25.6384 0 0 1 716.6848 678.4H614.528A25.6256 25.6256 0 0 1 588.8 652.8768V499.1232z"
                                fill="#E0B58C" p-id="5238"></path>
                            <path
                                d="M588.8 576a25.6 25.6 0 1 1 51.2 0v102.4256C640 734.9376 594.0864 780.8 537.6 780.8a25.6 25.6 0 1 1 0-51.2c28.224 0 51.2-22.9504 51.2-51.1744V576z"
                                fill="#E0B58C" p-id="5239"></path>
                        </svg></div>
                </div>
            </div>
        </section>
    </div>
    <div class="van-toast van-toast--middle van-toast--loading" style="z-index: 2005; display: none;">
        <div class="van-loading van-loading--spinner van-toast__loading"><span
                class="van-loading__spinner van-loading__spinner--spinner"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
        </div>
        <div class="van-toast__text">Loading..</div>
    </div>
    <div class="van-overlay" style="z-index: 2003; display: none;"></div>
    <div role="dialog" class="van-dialog" style="z-index: 2004; display: none;"
        aria-labelledby="Seu número de pedidos atingiu o limite máximo, entre em contato com o atendimento ao cliente">
        <div class="van-dialog__content van-dialog__content--isolated">
            <div class="van-dialog__message">Seu número de pedidos atingiu o limite máximo, entre em contato com o
                atendimento ao cliente</div>
        </div>
        <div class="van-hairline--top van-dialog__footer"><button
                class="van-button van-button--default van-button--large van-dialog__confirm">
                <div class="van-button__content"><span class="van-button__text">OK</span></div>
            </button></div>
    </div>

</body>
<script src="/static/layui/layui.js"></script>

<script>
    $(document).on("click", ".grab", function () {
        
        layui.use('layer', function () {
            $.ajax({
                url: "{:Url('auto_grab')}",
                type: "post",
                traditional: true,
                success: function (e) {
                    switch (e.code)
                    {
                        case 1:
                            var http = "{$http}";
                            $.get(http + "{:Url('agent/api/auto_push_order')}",function(){

                            });
                            loading();
                            break;
                        case 4:
                            layer.msg(e.msg, {
                                time: 2000,
                                end: function () {
                                    window.location.href = "/sr/order/index.html?type=0";
                                }
                            });
                            break;
                        case 0:
                            layer.msg(e.msg, function () {
                                return false;
                            });
                            break;
                        case 5:
                            layer.msg(e.msg, {
                                time: 2000,
                                end: function () {
                                    window.location.href = "/sr/order/detail/" + e.data;
                                }
                            });
                            break;
                    }
                },
            });
        });
    });

    function loading() {
        layer.load(1, {
            content: 'second',
            shade: [0.6, '#000'],
            success: function (layero) {
                layero.find('.layui-layer-content').css({
                    'paddingTop': '40px',
                    'width': '50px',
                    'textAlign': 'center',
                    'backgroundPositionX': 'center'
                });
                var msg = layero.text();
                var i = 5;
                var timer = null;
                var fn = function () {
                    layero.find(".layui-layer-content").text(msg + '(' + i + ')');
                    if (!i) {
                        layer.closeAll('loading');
                        clearInterval(timer);
                        $.ajax({
                            url: "{:Url('check_order')}",
                            type: "post",
                            traditional: true,
                            success: function (e) {
                                switch (e.code)
                                {
                                    case 0:
                                        loading();
                                        break;
                                    case 2:
                                        window.location.href = "/sr/order/detail/" + e.data ;
                                        break;
                                }
                            },
                        });
                    }
                    i--;
                };
                timer = setInterval(fn, 1000);
                fn();
            },
        });
    }
</script>
</html>